package com.kang.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * log_record
 * @author
 */
@Data
public class LogRecord implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 操作IP
     */
    private String operateIp;

    /**
     * 执行路径
     */
    private String operateUrl;

    /**
     * 操作人
     */
    private String operateUser;

    /**
     * 执行时间
     */
    private Date operateTime;

    @Override
    public String toString(){
        return "请求人：" +operateUser +
             "\n请求IP：" +operateIp +
             "\n请求路径：" +operateUrl +
             "\n请求时间：" +operateTime ;
    }
}
